package com.ezops.util;


public class SystemConstants {
	
	
	public static final String RUNTIME_ENVIORNMENT_PROPERTY = "RUNTIME_ENV";
	 
	public static final String APPLICATION_JSON                    ="application/json";    
	public static final String APPLIATION_PDF                    ="application/pdf";   
	public static final String IMAGE_JPEG                    ="image/jpeg";    
	
	
//	public static enum MailTypes {
//		Bill,
//		Invoice,
//		Statement,
//		Notice
//	}
	
	
	
	public enum MailTypes {
		BILL("Bill"),
		INVOICE("Invoice"),
		STATEMENT("Statement"),
		NOTICE("Notice"),
		;

		private final String mailtype;

		MailTypes(String mailtype) {
			this.mailtype = mailtype;
		}
		public String getMailtype() {
			return mailtype;
		}
		static public boolean isMember(String mailTypeName) {
			MailTypes[] mailTypesList = MailTypes.values();
			for (MailTypes mailtype : mailTypesList)
				if (mailtype.mailtype.equals(mailTypeName))
					return true;
			return false;
		}
	}
	
	
	public enum ContentType {
		PDF("PDF"),
		TEXT("TEXT")
		;

		private final String contentType;

		ContentType(String contentType) {
			this.contentType = contentType;
		}
		public String contentType() {
			return contentType;
		}
		static public boolean isMember(String contentTypesName) {
			ContentType[] contenTypeList = ContentType.values();
			for (ContentType contentType : contenTypeList)
				if (contentType.contentType.equals(contentTypesName))
					return true;
			return false;
		}
	}
	
	
	
	

	
}
